import {
	createSSRApp
} from 'vue'
import {
	createPinia
} from 'pinia'
// main.js

import {mixin} from './utils/mixinShare.js'


import uviewPlus from '@/uni_modules/uview-plus'
import {
	piniaPluginPersistedstate
} from '@/store/persist'
// import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
// import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import App from './App.vue'
import '@/utils/utils'
export function createApp() {
	const app = createSSRApp(App)
	// 实例化Pinia
	const pinia = createPinia()
	// Pinia 持久化插件
	pinia.use(piniaPluginPersistedstate)
	// 传递给项目应用3
	app.mixin(mixin)
	app.use(pinia)
	app.use(uviewPlus)
	return {
		app
	}
}